package ch.janotta.slawo.ultraquest.rulesets;

import java.util.HashMap;

import ch.janotta.slawo.ultraquest.types.Species;

public class SpeciesRulesetsFactory {
  private static HashMap<Species, SpeciesRuleset> RULESETS;

  static {
    RULESETS = new HashMap<>();
    RULESETS.put(Species.HUMAN,    new HumanRuleset());
    RULESETS.put(Species.ELF,      new ElfRuleset());
    RULESETS.put(Species.HALFELF,  new HalfelfRuleset());
    RULESETS.put(Species.HALFLING, new HalflingRuleset());
  }

  public static SpeciesRuleset getRulesetInstance(Species species) {
    return RULESETS.get(species);
  }
}
